//
//  SelectPhotoModel.m
//  Rail
//
//  Created by hychen on 2018/3/4.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import "SelectPhotoModel.h"

@implementation SelectPhotoModel
// 选择照片模型
+ (instancetype)selectImageModel
{
    SelectPhotoModel *model = [[self alloc] init];
    model.image = [UIImage imageNamed:@"app_add_picture_img"];
    model.selectPhoto = YES;
    return model;
}

/**
 *  初始化
 *
 *  @param image       缩略图
 *  @param imageDate   图片拍摄日期
 *  @param uploadImage 上传的图片（压缩过）
 *
 *  @return 图片模型
 */
- (instancetype)initWithImage:(UIImage *)image imageDate:(NSDate *)imageDate uploadImage:(UIImage *)uploadImage
{
    if (self = [super init]) {
        self.image = image;
        self.imageDate = imageDate;
        self.uploadImage = uploadImage;
    }
    return self;
}
@end
